<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>5的倍数</title>
	<script type="text/javascript">
		var num=Number(prompt('请输入一个正整数：'));
		if (num<=0||parseInt(num)!==num) {
			console.log('请输入正整数！');
		}
		else if (num%5==0) {
			console.log(num+'是5的倍数');
		} 	
		else{
			console.log(num+'不是5的倍数,它被5除余'+num%5);
		}
	</script>
</head>
<body>
	
</body>
</html>